package com.guoqing.example.mapper;

import com.guoqing.example.entity.MyUser;
import com.guoqing.example.entity.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description TODO
 * @Author ZhangGuoQing
 * @Date 2020/8/16/0016 22:47
 */
@Repository
@Mapper
public interface UserMapper {
    MyUser selectUserByUserName(@Param("userName") String userName);

    MyUser userRoleResources(@Param("userName") String userName);

    List<Resource> getResourceByUsername(@Param("userName") String userName);
}
